home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / Xconq 7.0d37 / source / kernel / gvar.def < prev    next >
Encoding:
Text File  |  1995-04-04  |  8.7 KB  |  252 lines  |  [TEXT/R*ch]

  1. /* Definitions of all the global variables in Xconq GDL.
  2.    Copyright (C) 1991, 1992, 1993, 1994, 1995 Stanley T. Shebs.
  3.  
  4. Xconq is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.  See the file COPYING.  */
  8.  
  9. DEF_VAR_L("action-messages", g_action_messages, set_g_action_messages,
  10.     "text to use in describing actions and their outcomes",
  11.     gactionmessages, NULL)
  12.  
  13. DEF_VAR_I("advantage-default", g_advantage_default, set_g_advantage_default,
  14.     "default advantage of each side",
  15.     gadvantagedefault, 1, 1, 9999)
  16.  
  17. DEF_VAR_I("advantage-max", g_advantage_max, set_g_advantage_max,
  18.     "maximum advantage that a player can request",
  19.     gadvantagemax, 1, 9999, 9999)
  20.  
  21. DEF_VAR_I("advantage-min", g_advantage_min, set_g_advantage_min,
  22.     "minimum advantage that a player can request",
  23.     gadvantagemin, 1, 1, 9999)
  24.  
  25. DEF_VAR_I("alt-blob-density", g_alt_blob_density, set_g_alt_blob_density,
  26.     "number of altitude blobs to generate for fractal terrain",
  27.     galtblobdensity, 0, 500, 9999)
  28.  
  29. DEF_VAR_I("alt-blob-height", g_alt_blob_height, set_g_alt_blob_height,
  30.     "height of altitude blobs to generate for fractal terrain",
  31.     galtblobheight, 0, 1000, 9999)
  32.  
  33. DEF_VAR_I("alt-blob-size", g_alt_blob_size, set_g_alt_blob_size,
  34.     "size of altitude blobs to generate for fractal terrain",
  35.     galtblobsize, 0, 30, 9999)
  36.  
  37. DEF_VAR_I("alt-smoothing", g_alt_smoothing, set_g_alt_smoothing,
  38.     "number of averaging steps to do on generated altitudes",
  39.     galtsmoothing, 0, 2, 9999)
  40.  
  41. DEF_VAR_L("calendar", g_calendar, set_g_calendar,
  42.     "calendar system to use",
  43.     gcalendar, NULL)
  44.  
  45. DEF_VAR_I("country-radius-max", g_radius_max, set_g_radius_max,
  46.     "maximum radius of each side's country",
  47.     gradiusmax, 0, 0, 9999)
  48.  
  49. DEF_VAR_I("country-radius-min", g_min_radius, set_g_min_radius,
  50.     "default radius of each side's country, in cells",
  51.     gradiusmin, -1, -1, 9999)
  52.  
  53. DEF_VAR_I("country-separation-max", g_max_separation, set_g_max_separation,
  54.     "maximum separation between countries",
  55.     gmaxseparation, -1, -1, 9999)
  56.  
  57. DEF_VAR_I("country-separation-min", g_min_separation, set_g_min_separation,
  58.     "minimum distance from each country to some other",
  59.     gminseparation, 0, 0, 9999)
  60.  
  61. DEF_VAR_I("edge-terrain", g_edge_terrain, set_g_edge_terrain,
  62.     "type of terrain that goes around the edge of the world",
  63.     gedgeterrain, 0, 0, MAXTTYPES)
  64.  
  65. DEF_VAR_I("elapsed-real-time", g_elapsed_time, set_g_elapsed_time,
  66.     "number of seconds of real time in the game so far",
  67.     gelapsedtime, 0, 0, 99999999)
  68.  
  69. DEF_VAR_L("event-messages", g_event_messages, set_g_event_messages,
  70.     "text to use in describing events",
  71.     geventmessages, NULL)
  72.  
  73. DEF_VAR_I("extra-turn-chance", g_extra_turn, set_g_extra_turn,
  74.     "chance that game will last one more turn",
  75.     gextraturn, 0, 0, 99)
  76.  
  77. DEF_VAR_L("feature-namers", g_feature_namers, set_g_feature_namers,
  78.     "definitions of namers of geographical features",
  79.     gfeaturenamers, NULL)
  80.  
  81. DEF_VAR_L("feature-types", g_feature_types, set_g_feature_types,
  82.     "definitions of types of geographical features",
  83.     gfeaturetypes, NULL)
  84.  
  85. DEF_VAR_S("grid-color", g_grid_color, set_g_grid_color,
  86.     "name of the color representing grid terrain",
  87.     ggridcolor, "")
  88.  
  89. DEF_VAR_I("growth-stop-chance", g_growth_stop, set_g_growth_stop,
  90.     "chance that country growth will stop after expanding by one",
  91.     ggrowthstop, 0, 0, 100)
  92.  
  93. DEF_VAR_S("initial-date", g_base_date, set_g_base_date,
  94.     "date of the first turn",
  95.     gbasedate, "")
  96.  
  97. DEF_VAR_I("initial-day-part", g_initial_day_part, set_g_initial_day_part,
  98.     "day part of the first turn",
  99.     ginitialdaypart, 0, 0, 9999)
  100.  
  101. DEF_VAR_I("initial-year-part", g_initial_year_part, set_g_initial_year_part,
  102.     "year part of the first turn",
  103.     ginitialyearpart, 0, 0, 9999)
  104.  
  105. DEF_VAR_I("last-turn", g_last_turn, set_g_last_turn,
  106.     "last possible turn in the game",
  107.     glastturn, 1, 9999, 9999)
  108.  
  109. DEF_VAR_I("maze-passage-density", g_maze_passage, set_g_maze_passage,
  110.     "density of passages in a maze",
  111.     gmazepassages, 0, 3000, 10000)
  112.  
  113. DEF_VAR_I("maze-room-density", g_maze_room, set_g_maze_room,
  114.     "density of rooms in a maze",
  115.     gmazerooms, 0, 1000, 10000)
  116.  
  117. DEF_VAR_I("player-sides-locked", g_player_sides_locked, set_g_player_sides_locked,
  118.     "true if player-side assignments can't be changed",
  119.     gplayersideslocked, 0, 0, 1)
  120.  
  121. DEF_VAR_L("random-events", g_random_events, set_g_random_events,
  122.     "list of random events to do each turn",
  123.     grandomevents, NULL)
  124.  
  125. DEF_VAR_I("random-state", g_random_state, set_g_random_state,
  126.     "value of the random state",
  127.     grandomstate, -1, -1, 32767)
  128.  
  129. DEF_VAR_I("real-time-for-game", g_rt_for_game, set_g_rt_for_game,
  130.     "total real time that the game may last",
  131.     grtforgame, 0, 0, 999999)
  132.  
  133. DEF_VAR_I("real-time-per-side", g_rt_per_side, set_g_rt_per_side,
  134.     "",
  135.     grtperside, 0, 0, 999999)
  136.  
  137. DEF_VAR_I("real-time-per-turn", g_rt_per_turn, set_g_rt_per_turn,
  138.     "",
  139.     grtperturn, 0, 0, 999999)
  140.  
  141. DEF_VAR_I("river-sink-terrain", g_river_sink_terrain, set_g_river_sink_terrain,
  142.     "terrain type of a cell completely surrounded by river",
  143.     griversinkterrain, 0, NONTTYPE, NONTTYPE)
  144.  
  145. DEF_VAR_S("scorefile-name", g_scorefile_name, set_g_scorefile_name,
  146.     "name for the scorefile",
  147.     gscorefilename, "")
  148.  
  149. DEF_VAR_L("season-names", g_season_names, set_g_season_names,
  150.     "names of seasons in yearly cycle",
  151.     gseasonnames, NULL)
  152.  
  153. DEF_VAR_I("see-all", g_see_all, set_g_see_all,
  154.     "true if everything is always seen all the time",
  155.     gseeall, 0, 0, 1)
  156.  
  157. DEF_VAR_I("see-terrain-always", g_see_terrain_always, set_g_see_terrain_always,
  158.     "true if terrain is always seen all the time",
  159.     gseeterrainalways, 0, 1, 1)
  160.  
  161. DEF_VAR_I("see-weather-always", g_see_weather_always, set_g_see_weather_always,
  162.     "true if weather is always seen all the time",
  163.     gseeweatheralways, 0, 1, 1)
  164.  
  165. DEF_VAR_I("self-required", g_self_required, set_g_self_required,
  166.     "true if each side must have a self-unit",
  167.     gselfrequired, 0, 0, 1)
  168.  
  169. DEF_VAR_L("side-library", g_side_lib, set_g_side_lib,
  170.     "list of available sides",
  171.     gsidelib, set_g_side_lib_default)
  172.  
  173. DEF_VAR_I("sides-max", g_sides_max, set_g_sides_max,
  174.     "maximum number of sides in a game",
  175.     gsidesmax, 1, MAXSIDES, MAXSIDES)
  176.  
  177. DEF_VAR_I("sides-min", g_sides_min, set_g_sides_min,
  178.     "minimum number of sides in a game",
  179.     gsidesmin, 1, 2, MAXSIDES)
  180.  
  181. DEF_VAR_L("synthesis-methods", g_synth_methods, set_g_synth_methods,
  182.     "list of synthesis methods to run during init",
  183.     gsynthmethods, set_g_synth_methods_default)
  184.  
  185. DEF_VAR_L("temperature-year-cycle", g_temp_year, set_g_temp_year,
  186.     "change in temperature during a year",
  187.     gtempyear, NULL)
  188.  
  189. DEF_VAR_I("temperature-floor", g_temp_floor, set_g_temp_floor,
  190.     "absolute minimum possible temperature",
  191.     gtempfloor, -9999, 0, 9999)
  192.  
  193. DEF_VAR_I("temperature-floor-elevation", g_temp_floor_elev, set_g_temp_floor_elev,
  194.     "elevation at which minimum temperature occurs",
  195.     gtempfloorelev, -9999, 0, 9999)
  196.  
  197. DEF_VAR_I("temperature-moderation-range", g_temp_mod_range, set_g_temp_mod_range,
  198.     "how far to go in averaging temperature variations",
  199.     gtempmodrange, 0, 0, 2)
  200.  
  201. DEF_VAR_I("terrain-seen", g_terrain_seen, set_g_terrain_seen,
  202.     "true if the world's terrain is already completely known",
  203.     gterrainseen, 0, FALSE, 1)
  204.  
  205. DEF_VAR_I("turn", g_turn, set_g_turn,
  206.     "the current turn",
  207.     gturn, 0, 0, 32767)
  208.  
  209. DEF_VAR_I("units-in-game-max", g_units_in_game_max, set_g_units_in_game_max,
  210.     "limit on the total number of units at any time in the game",
  211.     gunitsingamemax, -1, -1, 9999)
  212.  
  213. DEF_VAR_I("units-per-side-max", g_units_per_side, set_g_max_units_per_side,
  214.     "limit on the total number of units on each side",
  215.     gunitspersidemax, -1, -1, 9999)
  216.  
  217. DEF_VAR_S("unseen-char", g_unseen_char, set_g_unseen_char,
  218.     "name of the char representing unseen terrain",
  219.     gunseenchar, " ?")
  220.  
  221. DEF_VAR_S("unseen-color", g_unseen_color, set_g_unseen_color,
  222.     "name of the color(s) representing unseen terrain",
  223.     gunseencolor, "")
  224.  
  225. DEF_VAR_S("unseen-image-name", g_unseen_image_name, set_g_unseen_image_name,
  226.     "name of the image representing unseen terrain",
  227.     gunseenimagename, "")
  228.  
  229. DEF_VAR_I("use-side-priority", g_use_side_priority, set_g_use_side_priority,
  230.     "true if sides are to move according to priority",
  231.     gusesidepriority, 0, 0, 1)
  232.  
  233. DEF_VAR_I("wet-blob-density", g_wet_blob_density, set_g_wet_blob_density,
  234.     "number of wetness blobs to generate for fractal terrain",
  235.     gwetblobdensity, 0, 100, 9999)
  236.  
  237. DEF_VAR_I("wet-blob-height", g_wet_blob_height, set_g_wet_blob_height,
  238.     "height of wetness blobs to generate for fractal terrain",
  239.     gwetblobheight, 0, 100, 9999)
  240.  
  241. DEF_VAR_I("wet-blob-size", g_wet_blob_size, set_g_wet_blob_size,
  242.     "size of wetness blobs to generate for fractal terrain",
  243.     gwetblobsize, 0, 100, 9999)
  244.  
  245. DEF_VAR_I("wet-smoothing", g_wet_smoothing, set_g_wet_smoothing,
  246.     "number of averaging steps to do on generated altitudes",
  247.     gwetsmoothing, 0, 2, 9999)
  248.  
  249. DEF_VAR_I("wind-mix-range", g_wind_mix_range, set_g_wind_mix_range,
  250.     "how far to go in averaging wind variations",
  251.     gwindmixrange, 0, 0, 2)
  252.